import http from "@/utils/request";

export const addStu = (data) => http.post("/students/addstu", { ...data });

//获取学员信息

export const getStuListApi = (count = 10, page = 1, classes) =>
  http.get("/students/getstulist", {
    params: {
      count,
      page,
      class: classes,
    },
  });

//编辑学员信息

export const editStuApi = (data) =>
  http.post("/students/updatestu", {
    ...data,
  });

//删除学员信息

export const deleteStu = (sId) =>
  http.get("/students/delstu", {
    params: {
      sId,
    },
  });
